package router

import (
	"github.com/gin-gonic/gin"
	"go_payment/app/controllers"
)

func Router(r *gin.Engine) *gin.Engine {
	api := r.Group("/api")
	{
		api.POST("/trade", controllers.Pay)
		api.Any("/:code/notify", controllers.Notify)
	}
	return r
}
